#ifndef POINTGROUP_H
#define POINTGROUP_H
#include <iostream>
#include "point.h"

using namespace std;

typedef struct POINTGROUP{
    long double ss;
    degree saov;
    long double fx;
    long double fy;
    long double f;
    degree fB;
    degree fB_allow;
    long double k;
    point* ps;
    point* flag;
    int n;
}PointGroup;

void AddPoint(PointGroup* pg, string name)
{
    point *np=new point(name);
    pg->flag->next=np;
    np->next=NULL;
    pg->flag=np;
}

void PrintPoints(PointGroup* pg)
{
    while(pg->flag->next!=NULL)
    {
        pg->flag=pg->flag->next;
        cout<<*(pg->flag)<<endl;
    }
    pg->flag=pg->ps;
}

#endif // POINTGROUP_H
